﻿using System;
using System.Collections;
using UnityEngine;

public class DeadState : SoldierState
{

    public DeadState(SoldierStateManager stateManager) : base(stateManager)//构造函数，继承子类的两个变量
    {
        _stateID = StateID.eStateID_Object_Dead;               //初始化状态ID为站立的ID
    }

    public override void FixedUpdate()
    {
    }

    public override void OnEnter()                           //刚进入状态时主角执行动作
    {
        m_Animator.SetTrigger("IsDead");
        m_NavAgent.isStopped = true;
    }

    public override void ProcessTransition()
    {


    }

    public override void OnExit()
    {
    }

    public override void Update()
    {
    }
}